package com.jk.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("page")
public class PageController {

    /**
     * 管理平台跳转主页面
     * @return
     */
    @RequestMapping("toMangeMain")
    public String toMain(){
        return "manage/MangeMain";
    }

    /**
     * 管理平台跳转主页面跳转用户信息
     * @return
     */
    @RequestMapping("toUserList")
    public String toUserList(){
        return "manage/toUserList";
    }

    /**
     * 跳转商家主页面
     * @return
     */
    @RequestMapping("toSellerList")
    public String toSellerList(){
        return "manage/toSellerList";
    }
    /**
     * 根据商家id查询店铺里的内容
     */
    @RequestMapping("shopByStoreId")
    public String shopByStoreId(){
        return "manage/shopStore";
    }


    /**
     * 管理平台打开订单信息
     * @return
     */
    @RequestMapping("order")
    public  String order(){
        return "manage/ManageOrder";
    }

    /**
     * 跳转商品主页面
     * @return
     */
    @RequestMapping("toProductMain")
    public String toProductMain(){
        return "product/productMain";
    }

    /**
     * 跳转商品列表页面
     * @return
     */
    @RequestMapping("toProductList")
    public String toProductList(){
        return "product/productList";
    }


    /**
     * 跳转商品库存页面
     * @return
     */
    @RequestMapping("toProductStock")
    public String toProductStock(){
        return "product/productStock";
    }

    /**
     * 跳转注册商家页面
     * @return
     */
    @RequestMapping("applyforshops")
    public String applyforshops(){
        return "manage/applyforshops";
    }

    /**
     * 店铺：根据商品id查询订单
     * @return
     */
    @RequestMapping("orderByShopId")
    public String orderByShopId(){
        return "manage/orderByShopId";
    }

    /**
     * 买家：查询页面
     * @return
     */
    @RequestMapping("tojiaoyia")
    public String tojiaoyia(){
        return "wjs/MyOrder";
    }

    //登陆
    @RequestMapping("tomain")
    public String tomain(){
        return "login";
    }

    //注册
    @RequestMapping("zhuce")
    public String zhuce(){
        return "wjs/register";
    }

    /**
     *跳转物流展示页面
     */
    @RequestMapping("toDiscountList")
    public String toDiscountList(){
        return "discount/discountList";
    }

    /**
     *跳转物流展示页面2
     */
    @RequestMapping("toDiscountList2")
    public String toDiscountList2(){
        return "discount/discountList2";
    }

    /**
     *已买到的商品
     */
    @RequestMapping("toyimaidao")
    public String toyimaidao(){
        return "wjs/maidao";
    }

    /**
     *待付款
     */
    @RequestMapping("daifukuan")
    public String daifukuan(){
        return "wjs/daifukuan";
    }

    /**
     *待发货
     */
    @RequestMapping("daifahuo")
    public String daifahuo(){
        return "wjs/daifahuo";
    }

    /**
     *待评价
     */
    @RequestMapping("daipingjia")
    public String daipingjia(){
        return "wjs/daipingjia";
    }

    /**
     * 跳转店铺中出售的商品
     * @return
     */
    @RequestMapping("toStoreProductSell")
    public String toStoreProductSell(){
        return "storeProduct/productSellList";
    }


    /**
     * 跳转店铺未出售的商品
     * @return
     */
    @RequestMapping("toStoreProductDown")
    public String toStoreProductDown(){
        return "storeProduct/productDownList";
    }

    /**
     * 跳转审核中商品列表
     * @return
     */
    @RequestMapping("toAuditProduct")
    public String toAuditProduct(){
        return "storeProduct/productAuditList";
    }

    /**
     * 发布商品
     * @return
     */
    @RequestMapping("toProductPublish")
    public String toProductPublish(){
        return "product/productPublish";
    }

    /**
     * 跳转 日志查询页面
     * @return
     */
    @RequestMapping("toLogList")
    public String toLogList(){
        return "logList";
    }

    /**
     *购买过的店铺
     */
    @RequestMapping("dianpu")
    public String dianpu(){
        return "wjs/dianpu";
    }

    /**
     * 买家树   这个地方 跳的是以前的页面 MaiTree
     * @return
     */
    @RequestMapping("toMaiTree")
    public String toMaiTree(){
        return "wjs/ataobao";
    }
    /**
     * 跳转购物车
     */
    @RequestMapping("shopCar")
    public String shopCar(){
        return "shopping/shopCar";
    }
    /**
     *跳转购买页面
     */
    @RequestMapping("goumai")
    public String goumai(){
        return "discount/Shangpinyemian";
    }
    /**
     *跳转主页面
     */
    @RequestMapping("zhuye")
    public String zhuye(){
        return "discount/Zhuyemian";
    }

    /**
     *个人信息
     */
    @RequestMapping("geren")
    public String geren(){
        return "wjs/gerenxinxi";
    }

    /**
     *王家顺登陆
     */
    @RequestMapping("den")
    public String den(){
        return "wjs/login";
    }

    /**
     *王家顺登陆
     */
    @RequestMapping("dizi")
    public String dizi(){
        return "wjs/dizi";
    }

    /*弹框*/
    @RequestMapping("toUpdatePassword")
    public String toUpdatePassword() {
        return "wjs/jkop";
    }
    /**
     * 商家登陆 李学成
     * @return
     */
    @RequestMapping("toLogin")
    public String toLogin(){
        return "product/login";
    }

    /**
     * 跳转平台 查询 审核商品  李帅
     * @return
     */
    @RequestMapping("shenheshangpin")
    public String shenheshangpin(){
        return "shenheshangpin";
    }

    /**
     *联系我们
     * */
    @RequestMapping("lianxime")
    public String lianxime() {
        System.out.println("柴君琪联系我们");
        return "discount/lianxime";
    }
    /**
     * 柴君琪登录跳转前台主页面
     * */
    @RequestMapping("loginchai")
    public String loginchai() {
        System.out.println("柴君琪登录跳转前台主页面");
        return "discount/login1";
    }
    /**
     * 柴君琪登录跳转购买页面
     * */
    @RequestMapping("loginjun")
    public String loginjun() {
        System.out.println("柴君琪登录跳转购买页面");
        return "discount/login2";
    }
    /**
     * 柴君琪注册跳转前台主页面
     * */
    @RequestMapping("zhucechai")
    public String zhucechai(){
        System.out.println("柴君琪注册跳转前台主页面");
        return "discount/register1";
    }
    /**
     * 柴君琪注册跳转购买页面
     * */
    @RequestMapping("zhucejun")
    public String zhucejun(){
        System.out.println("柴君琪注册跳转购买页面");
        return "discount/register2";
    }

    /**
     * 收藏页面的展示
     */
    @RequestMapping("toCollect")
    public String collect(){
        System.out.println("跳转收藏页面");
        return "ls/collect";
    }

    /**
     * 跳转Es 商品列表
     * @return
     */
    @RequestMapping("toGoodsList")
    public String toGoodsList(){
        return "product/goods";
    }

    /**
     * 店铺新增
     **/
    @RequestMapping("addpu")
    public  String addpu(){
        System.out.println("入驻商家");
        return "wjs/addpu";
    }
    /*全部功能
     * ...*/
    @RequestMapping("butree")
    public  String butree(){
        return "wjs/ataobao";
    }

    /*我的足迹
     * ...*/
    @RequestMapping("zuju")
    public  String zuju(){
        return "wjs/azuji";
    }



    /**
     * 跳转模糊查询页面
     */
    @RequestMapping("mocha")
    public String discount(){

        return "discount/Mochaxun";
    }



    /**
     * 跳转冻结的卖家店铺
     * @return
     */
    @RequestMapping("toDongJie")
    public String toDongJie(){
        return "ls/dongjie";
    }
    /**
     * 跳转营业中的卖家店铺
     * @return
     */
    @RequestMapping("toYingYe")
    public String toYingYe(){
        return "ls/yingye";
    }
    /**
     * 跳转整顿中的卖家店铺
     * @return
     */
    @RequestMapping("toZhengDun")
    public String toZhengDun(){
        return "ls/zhengdun";
    }
    /**
     * 跳转审核失败的卖家店铺
     * @return
     */
    @RequestMapping("toShiBai")
    public String toShiBai(){
        return "ls/shibai";
    }


    /**
     * 跳转收藏页面
     */
    @RequestMapping("shoucang")
    public String shoucang(){

        return "discount/shoucang";
    }

    /**
     * 未付款的订单
     * @return
     */
    @RequestMapping("noOrder")
    public String noOrder(){
        return "manage/noOrder";
    }

    /**
     * 已付款订单
     * @return
     */
    @RequestMapping("okOrder")
    public String okOrder(){
        return "manage/okOrder";
    }

    /**
     * 订单取消
     * @return
     */
    @RequestMapping("zzOrder")
    public String zzOrder(){
        return "manage/zzOrder";
    }
    /**
     * 个人修改
     * @return
     */
    @RequestMapping("updateu")
    public String updateu(){
        return "wjs/updateuser";
    }

    /**
     * 柴君琪登录3
     * */
    @RequestMapping("loginqi")
    public String loginqi(){

        return "discount/login3";
    }

    @RequestMapping("pingjia")
    public String pingjia(){
        return "wjs/pingJiaOrder";
    }

    /**
     * 跳转至金科生鲜
     * */
    @RequestMapping("fresh")
    public String fresh(){

        return "discount/fresh";
    }

    /**
     * 商品评价新增页面
     * */
    @RequestMapping("addproduct")
    public String addproduct(){

        return "wjs/addproduct";
    }

    /**
     * 我的评价页面
     * */
    @RequestMapping("userlun")
    public String userlun(){

        return "wjs/userlun";
    }

}
